package com.os.reflect;

/**
 * @Author Matt
 * @Date 2022-07-03
 * @Desc:
 * @Version V1.0
 */
public class HelloServiceMain {

    public static void main(String[] args) {
        /*HelloServiceProxy helloServiceProxyHandler = new HelloServiceProxy();
        HelloService helloServiceProxy = (HelloService) helloServiceProxyHandler.bind(new HelloServiceImpl());
        helloServiceProxy.sayHello("宋传磊~");*/

        HelloServiceCgLib helloServiceCgLib = new HelloServiceCgLib();
        HelloService helloServiceProxy = (HelloService) helloServiceCgLib.getInstance(new HelloServiceImpl());
        helloServiceProxy.sayHello("Matt~");
    }

}
